import React from 'react';
import {View} from '@tarojs/components';

import styles from './index.module.scss';

const Index: React.FC<any> = ({isReady, onSuccess}) => {


    return (
        <View className={styles.page}>

            <View
                style={{backgroundColor: isReady ? '#168CFF' : '#C9CDD4', color: isReady ? '#FAFAFA' : '#1D2129'}}
                className={styles.page_button} onClick={() => {
                if (isReady) onSuccess()
            }}
            >
                提交
            </View>


        </View>
    );
};

export default Index;
